package com.xcb.spring.demo.aop;

import com.xcb.spring.beans.BeanPostProcessor;
import com.xcb.spring.beans.Component;

/**
 *
 */
@Component
public class LoggerAspect implements BeanPostProcessor {
	@Override
	public Object postProcessBeforeInitialization(String beanName,Object bean) {
		System.out.println("前置 " + beanName);
		return bean;
	}

	@Override
	public Object postProcessAfterInitialization(String beanName,Object bean) {
		System.out.println("后置" + beanName);
		return bean;
	}
}
